
#ifndef  __IPMI_HEADER_H__
#define  __IPMI_HEADER_H__

#ifdef _cplusplus
extern "c"{
#endif

#include "typedef.h"

typedef struct _IpmiHeader
{
	unsigned char  m_NetFn:6;	//MSB 
	unsigned char  m_Lun:2;		//LSB
	
	unsigned char  m_Seq;
	unsigned char  m_Cmd; 
}IpmiHeader;

Bool IpmiHeader_IsMatch(IpmiHeader* pRqIpmiHeader, IpmiHeader* pRsIpmiHeader);
void IpmiHeader_Dump(IpmiHeader* pRqIpmiHeader, uint32 level);
void IpmiHeader_Init(IpmiHeader* pRqIpmiHeader, uint8 Cmd, uint8 NetFn, uint8 Lun);
#if XDEBUG
void IpmiHeader_Dump(IpmiHeader* pRqIpmiHeader, uint32 level);
#else
#define IpmiHeader_Dump(...)
#endif
#ifdef _cplusplus
}
#endif

#endif 


